package com.bw.controller;

import cn.hutool.core.util.RandomUtil;
import com.bw.common.ZzyUtils;
import com.bw.entity.User;
import com.bw.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;
import java.util.concurrent.TimeUnit;

@Controller
public class LoginController {

    @Autowired
    RedisTemplate redisTemplate;

    @Autowired
    UserMapper userMapper;

    /**
     * 登录页面
     * @return
     */
    @RequestMapping("/loginPage.do")
    public String loginPage(){

        return "login";
    }


}
